package com.koron.ticket.work.workPermit.mapper;

import com.koron.ticket.work.workPermit.bean.WorkPermit;
import com.koron.ticket.work.workPermit.bean.WorkPermitQuery;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

public interface WorkPermitMapper {
    void insert(WorkPermit workPermit);

    void update(WorkPermit workPermit);

    void deleteById(@Param("id") String id);

    WorkPermit getSingle(WorkPermitQuery workPermitQuery);

    void deleteByWorkTicketId(@Param("workTicketId") String workTicketId);

    List<WorkPermit> queryByWorkTicketIdIn(@Param("workTicketIdCollection")Collection<String> workTicketIdCollection);



}
